/**
 * 标签api
 */
import instance from "@/utils/request";

//文章列表分页查询
export function GetLabelListApi(data) {
    return instance.request({
        method: "post",
        url: `/label/list/page`,
        data
    })
}

//添加文章标签
export function AddLabelListApi(data) {
    return instance.request({
        method: "post",
        url: `/label/add`,
        data
    })
}

//修改文章标签
export function EditLabelListApi(data) {
    return instance.request({
        method: "post",
        url: `/label/modify`,
        data
    })
}

//删除文章标签
export function EdlLabelListApi(labelId) {
    return instance.request({
        method: "DELETE",
        url: `/label/delete/${labelId}`,
    })
}

//文章标签启用禁用
export function StartRecommendApi(labelId, recommend) {
    return instance.request({
        method: "get",
        url: `/label/setting/${labelId}/${recommend}`,
    })
}